package ch1;

public class Zuoye03084 {
    public static void main(String[] args) {
        int i=0;
        int b=0;
        while (i<1000){
            i++;
            b+=i;

        }
        System.out.println(b);
    }

}
